package com.app.qbake.module.publish.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.app.qbake.R;
import com.app.qbake.module.publish.PublishGoodsFragment;
import com.wind.base.BaseActivity;
import com.wind.base.utils.Navigator;
import com.wind.data.mine.bean.EditGoodsInfo;

public class PublishGoodsActivity extends BaseActivity {
    public static void start(Context context){
        start(context,null);
    }
    public static void start(Context context, EditGoodsInfo editGoodsInfo){
        Navigator.navigate(context,PublishGoodsActivity.class,editGoodsInfo);
    }
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.fragment_container_with_toolbar);
        EditGoodsInfo goods=Navigator.getSerializableExtra(this);
        replaceFragment(PublishGoodsFragment.getInstance(goods));
    }

    @Override
    protected void setTitle() {
        mTitleBar.setTitle("发布宝贝");
    }
}
